<template>
 <tree-select :tree-data="orgTree" @input="selected" :disabled="disabled" :value="value"></tree-select>
</template>

<script>
import treeSelect from '@/views/platform/components/selector/treeSelect'

export default {
  name: 'orgcombox',
  data() {
    return {

    }
  },
  props: {
    value: {
      type: String
    },
    disabled: {
      type: Boolean
    }
  },
  components: { treeSelect },
  computed: {
    orgTree() {
      if (this.$store.getters.orgTree) {
        return [this.$store.getters.orgTree]
      } else {
        return null
      }
    }
  },
  methods: {
    selected(value, id) {
      this.$emit('input', value)
    }
  }

}
</script>